package com.meiqiongproperty.yiguanjia.http.model;

import com.google.gson.annotations.Expose;
import com.meiqiongproperty.yiguanjia.http.interfaces.IHttpResult;

/**
 * @author Chen
 * @version V1.0
 * @Describe IHttpResult
 * @package com.sameway.cnotes.http.model
 * @date 17/3/13 下午3:59
 *
 */
public class HttpResult<T> implements IHttpResult<T> {

    @Expose
    private int Code;
    @Expose
    private String Message;
    @Expose
    private T Data;

    @Override
    public int getCode() {
        return Code;
    }

    public void setCode(int code) {
        this.Code = code;
    }

    @Override
    public String getMessage() {
        return Message;
    }

    public void setMessage(String Message) {
        this.Message = Message;
    }

    @Override
    public T getData() {
        return Data;
    }

    public void setData(T Data) {
        this.Data = Data;
    }

    @Override
    public String toString() {
        return "IHttpResult {"+ "code=" + Code + ", msg='" + Message + '\'' + ", data=" + Data + '}';
    }

}